package com.ultrapower.ctool.xn_app;

import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.StrictMode;
import android.view.View;
import android.widget.Toast;

import com.ultrapower.ctool.utils.screen_oper;

public class Main extends Activity {

    Context cur_context = null;

    @TargetApi(9)
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);


        screen_oper.set_full_screen(this);
        setContentView(R.layout.system_main);
        cur_context = this;

        StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
                .detectDiskReads().detectDiskWrites().detectNetwork() // or
                // .detectAll()
                // for
                // all
                // detectable
                // problems
                .penaltyLog().build());
        StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
                .detectLeakedSqlLiteObjects().penaltyLog().penaltyDeath()
                .build());

    }

    public void load_01_fwxx(View view) {
        Toast.makeText(getApplicationContext(), "功能正在开发中", Toast.LENGTH_SHORT).show();


        return;
    }

    public void load_02_fzxx(View view) {
        Toast.makeText(getApplicationContext(), "功能正在开发中", Toast.LENGTH_SHORT).show();
        

        return;
    }

    public void load_03_ryxx(View view) {
        Toast.makeText(getApplicationContext(), "功能正在开发中", Toast.LENGTH_SHORT).show();
        

        return;
    }

    public void load_04_dwxx(View view) {
        Toast.makeText(getApplicationContext(), "功能正在开发中", Toast.LENGTH_SHORT).show();
        

        return;
    }

    public void load_05_rwxp(View view) {
        Toast.makeText(getApplicationContext(), "功能正在开发中", Toast.LENGTH_SHORT).show();
        

        return;
    }

    public void load_06_dqsq(View view) {
        Toast.makeText(getApplicationContext(), "功能正在开发中", Toast.LENGTH_SHORT).show();
        

        return;
    }

    public void load_07_gaxx(View view) {
        Toast.makeText(getApplicationContext(), "功能正在开发中", Toast.LENGTH_SHORT).show();
        

        return;
    }

    public void load_08_sdfw(View view) {
        Toast.makeText(getApplicationContext(), "功能正在开发中", Toast.LENGTH_SHORT).show();
        

        return;
    }

    public void load_09_mdxx(View view) {
        Toast.makeText(getApplicationContext(), "功能正在开发中", Toast.LENGTH_SHORT).show();
        

        return;
    }


    public void load_10_wtsb(View view) {
        Toast.makeText(getApplicationContext(), "功能正在开发中", Toast.LENGTH_SHORT).show();
        

        return;
    }

    public void load_11_zcfg(View view) {
        Toast.makeText(getApplicationContext(), "功能正在开发中", Toast.LENGTH_SHORT).show();
        

        return;
    }

    public void load_12_gzrz(View view) {
        Toast.makeText(getApplicationContext(), "功能正在开发中", Toast.LENGTH_SHORT).show();
        

        return;
    }


    public void load_13_xcgj(View view) {
        //Intent intent = new Intent(this, com.dvd.buss.pda_xcgj.c.class);// Intent();
        //

        return;
    }

    public void load_14_dtcx(View view) {
        /*
		Intent intent = new Intent(this, com.dvd.buss.pda_dtcx.C.class);// Intent(); 
		//  Intent intent = new Intent(this, com.dvd.buss.system.Gis.class);// Intent();
		 
		*/


        //二.不然你就调用android内置安装的浏览器来打开网页.
//        Uri uri = Uri.parse("http://cloudgis.zfw-xn.gov.cn:8080/gismobile/gismobile/main.jsp");
//        Intent it = new Intent(Intent.ACTION_VIEW, uri);
//        startActivity(it);
        //Toast.makeText(getApplicationContext(), "功能正在开发中", Toast.LENGTH_SHORT).show();
        Intent intent1=getIntent();
        Intent intent = new Intent(Main.this, MainActivity.class);
        Bundle bundle = new Bundle();
        bundle.putSerializable("menu", intent1.getSerializableExtra("menu"));
        intent.putExtras(bundle);
        //intent.putExtra("userInfo", intent.sets);
        startActivity(intent);
       // finish();

        return;
    }


    public void load_15_sbkq(View view) {
        Toast.makeText(getApplicationContext(), "功能正在开发中", Toast.LENGTH_SHORT).show();
        

        return;
    }

    public void load_16_xtgl(View view) {
        //Intent intent = new Intent(this, com.dvd.buss.pda_xtgl.c.class);// Intent();
        //
        Toast.makeText(getApplicationContext(), "功能正在开发中", Toast.LENGTH_SHORT).show();

        return;
    }


    public void button_back_click(View view) {
        this.finish();
        return;
    }

}
